//
// Created by yanhai on 2020/3/30.
//

/**
 * C++类有一个经典的分类：带指针的类和不带指针的类
 * 分别有两个经典的类：string和complex
 *
 * 本例将介绍带指针的类：string
 */

#include <iostream>
#include "string.h"

using namespace std;

int main()
{
    String s1;
    String s2("hello");
    String s3(s1);

    cout << s3 << endl;
    s3 = s2;
    cout << s3 << endl;
    return 0;
}
